#ifndef HUIYIDIALOG_H
#define HUIYIDIALOG_H

#include <QDialog>
#include <QMessageBox>
#include <QCloseEvent>

namespace Ui {
class huiyiDialog;
}

class huiyiDialog : public QDialog
{
    Q_OBJECT

signals:
    void SIG_close();
    void SIG_createRoom();//告诉kernel创建房间
    void SIG_joinRoom();//告诉kernel加入房间

public:
    explicit huiyiDialog(QWidget *parent = 0);
    ~huiyiDialog();

    void closeEvent(QCloseEvent* event);

    //设置个人信息，名字和头像
    void setInfo(QString name,int icon);

private slots:
    void on_pb_create_clicked();
    void on_pb_join_clicked();

private:
    Ui::huiyiDialog *ui;
};

#endif // HUIYIDIALOG_H
